package com.xuecheng.content.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

/**
 * @TableName mq_message_history
 */
@TableName(value ="mq_message_history")
public class MqMessageHistory {
    private Long id;

    private String messageType;

    private String businessKey1;

    private String businessKey2;

    private String businessKey3;

    private Integer executeNum;

    private Integer state;

    private Date returnfailureDate;

    private Date returnsuccessDate;

    private String returnfailureMsg;

    private Date executeDate;

    private String stageState1;

    private String stageState2;

    private String stageState3;

    private String stageState4;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMessageType() {
        return messageType;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    public String getBusinessKey1() {
        return businessKey1;
    }

    public void setBusinessKey1(String businessKey1) {
        this.businessKey1 = businessKey1;
    }

    public String getBusinessKey2() {
        return businessKey2;
    }

    public void setBusinessKey2(String businessKey2) {
        this.businessKey2 = businessKey2;
    }

    public String getBusinessKey3() {
        return businessKey3;
    }

    public void setBusinessKey3(String businessKey3) {
        this.businessKey3 = businessKey3;
    }

    public Integer getExecuteNum() {
        return executeNum;
    }

    public void setExecuteNum(Integer executeNum) {
        this.executeNum = executeNum;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getReturnfailureDate() {
        return returnfailureDate;
    }

    public void setReturnfailureDate(Date returnfailureDate) {
        this.returnfailureDate = returnfailureDate;
    }

    public Date getReturnsuccessDate() {
        return returnsuccessDate;
    }

    public void setReturnsuccessDate(Date returnsuccessDate) {
        this.returnsuccessDate = returnsuccessDate;
    }

    public String getReturnfailureMsg() {
        return returnfailureMsg;
    }

    public void setReturnfailureMsg(String returnfailureMsg) {
        this.returnfailureMsg = returnfailureMsg;
    }

    public Date getExecuteDate() {
        return executeDate;
    }

    public void setExecuteDate(Date executeDate) {
        this.executeDate = executeDate;
    }

    public String getStageState1() {
        return stageState1;
    }

    public void setStageState1(String stageState1) {
        this.stageState1 = stageState1;
    }

    public String getStageState2() {
        return stageState2;
    }

    public void setStageState2(String stageState2) {
        this.stageState2 = stageState2;
    }

    public String getStageState3() {
        return stageState3;
    }

    public void setStageState3(String stageState3) {
        this.stageState3 = stageState3;
    }

    public String getStageState4() {
        return stageState4;
    }

    public void setStageState4(String stageState4) {
        this.stageState4 = stageState4;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MqMessageHistory other = (MqMessageHistory) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMessageType() == null ? other.getMessageType() == null : this.getMessageType().equals(other.getMessageType()))
            && (this.getBusinessKey1() == null ? other.getBusinessKey1() == null : this.getBusinessKey1().equals(other.getBusinessKey1()))
            && (this.getBusinessKey2() == null ? other.getBusinessKey2() == null : this.getBusinessKey2().equals(other.getBusinessKey2()))
            && (this.getBusinessKey3() == null ? other.getBusinessKey3() == null : this.getBusinessKey3().equals(other.getBusinessKey3()))
            && (this.getExecuteNum() == null ? other.getExecuteNum() == null : this.getExecuteNum().equals(other.getExecuteNum()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getReturnfailureDate() == null ? other.getReturnfailureDate() == null : this.getReturnfailureDate().equals(other.getReturnfailureDate()))
            && (this.getReturnsuccessDate() == null ? other.getReturnsuccessDate() == null : this.getReturnsuccessDate().equals(other.getReturnsuccessDate()))
            && (this.getReturnfailureMsg() == null ? other.getReturnfailureMsg() == null : this.getReturnfailureMsg().equals(other.getReturnfailureMsg()))
            && (this.getExecuteDate() == null ? other.getExecuteDate() == null : this.getExecuteDate().equals(other.getExecuteDate()))
            && (this.getStageState1() == null ? other.getStageState1() == null : this.getStageState1().equals(other.getStageState1()))
            && (this.getStageState2() == null ? other.getStageState2() == null : this.getStageState2().equals(other.getStageState2()))
            && (this.getStageState3() == null ? other.getStageState3() == null : this.getStageState3().equals(other.getStageState3()))
            && (this.getStageState4() == null ? other.getStageState4() == null : this.getStageState4().equals(other.getStageState4()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMessageType() == null) ? 0 : getMessageType().hashCode());
        result = prime * result + ((getBusinessKey1() == null) ? 0 : getBusinessKey1().hashCode());
        result = prime * result + ((getBusinessKey2() == null) ? 0 : getBusinessKey2().hashCode());
        result = prime * result + ((getBusinessKey3() == null) ? 0 : getBusinessKey3().hashCode());
        result = prime * result + ((getExecuteNum() == null) ? 0 : getExecuteNum().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getReturnfailureDate() == null) ? 0 : getReturnfailureDate().hashCode());
        result = prime * result + ((getReturnsuccessDate() == null) ? 0 : getReturnsuccessDate().hashCode());
        result = prime * result + ((getReturnfailureMsg() == null) ? 0 : getReturnfailureMsg().hashCode());
        result = prime * result + ((getExecuteDate() == null) ? 0 : getExecuteDate().hashCode());
        result = prime * result + ((getStageState1() == null) ? 0 : getStageState1().hashCode());
        result = prime * result + ((getStageState2() == null) ? 0 : getStageState2().hashCode());
        result = prime * result + ((getStageState3() == null) ? 0 : getStageState3().hashCode());
        result = prime * result + ((getStageState4() == null) ? 0 : getStageState4().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", messageType=").append(messageType);
        sb.append(", businessKey1=").append(businessKey1);
        sb.append(", businessKey2=").append(businessKey2);
        sb.append(", businessKey3=").append(businessKey3);
        sb.append(", executeNum=").append(executeNum);
        sb.append(", state=").append(state);
        sb.append(", returnfailureDate=").append(returnfailureDate);
        sb.append(", returnsuccessDate=").append(returnsuccessDate);
        sb.append(", returnfailureMsg=").append(returnfailureMsg);
        sb.append(", executeDate=").append(executeDate);
        sb.append(", stageState1=").append(stageState1);
        sb.append(", stageState2=").append(stageState2);
        sb.append(", stageState3=").append(stageState3);
        sb.append(", stageState4=").append(stageState4);
        sb.append("]");
        return sb.toString();
    }
}